<!-- forms/interface/options.html : Варианты вывода полей интерфейса "одиночный выбор"-->

{{TPL:Select}}
<select {{?params_class}}class="{{params_class}}"{{/?}} name="{{field}}">
{{!for options do=@:Select_Item}}
</select>
{{/TPL:Select}}

{{TPL:Select_Item}}<option value="{{*value}}" {{*selected}}>{{*title}}</option>{{/TPL:Select_Item}}


{{TPL:Radio}}
<table class="options- w100" cellspacing="2" cellpadding="0" border="0">
  {{_}}
</table>
{{/TPL:Radio}}
{{TPL:Radio_Empty}}
{{/TPL:Radio_Empty}}

{{TPL:Radio_Item}}
 <tr>
   <td><input type="radio" name="{{field}}" value="{{*value}}" id="id_{{field}}_{{_Num}}" {{*selected}} /></td>
   <td class="w100"><label for="id_{{field}}_{{_Num}}">{{*title}}</label></td>
 </tr>
{{/TPL:Radio_Item}}

{{TPL:Checkbox}}
<input type="checkbox" name="{{field}}" value="1" {{?interface_data}}checked{{/?}} />
{{/TPL:Checkbox}}

<!-- Контрол - селектор типа документа -->
{{:DocTypeSelector}}
<ul class="typeselector-" id="typeselector">
  	{{!for options do=@:DocTypeSelItem}}
	<input type="hidden" name="{{field}}" value="{{interface_data}}" />
</ul>
{{/:DocTypeSelector}}

{{:DocTypeSelItem}}
	{{?*selected}}
		<li class="selected- s{{*color}}" id="li{{*value}}"><a class="s{{*color}}-link js_dt_button" id="tdi{{*value}}"><span class="br-">{{*title}}</span></a></li>
	{{?:*disabled}}
		<li id="li{{*value}}"><div class="s{{*color}}-link js_dt_button" id="tdi{{*value}}"><span class="br-">{{*title}}</span></div></li>
	{{?:}}
		<li id="li{{*value}}"><a href="{{*link}}" class="s{{*color}}-link js_dt_button" id="tdi{{*value}}"><span class="br-">{{*title}}</span></a></li>
	{{/?}}
</li>
{{/:DocTypeSelItem}}
